package interview.alibaba;

/**
 * @author <a href="zhaoyingling12@163.com">Zhao Simon</a>
 * @program: arithmetic-learning
 * @description: parent class
 * @since
 */
public class ParentClass extends Object{

    public String name;

    public ParentClass(String name) {
        this.name = name;
    }
    public void name() {
        System.out.println("父类");
    }

   @Override
   public Object clone() throws CloneNotSupportedException {
        return new ParentClass(this.name);
    }
}
